home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 11
/
011.d81
/
dos #28
< prev
next >
Wrap
Text File
|
2022-08-26
|
5KB
|
240 lines
DOS and Don'ts -- Part 28
This month we will discuss the
commands which make up the DOS Wedge.
We all know how useful the wedge's
shortcuts are, so here is a list of
the most useful commands with a brief
explanation of each. The equivalent
statement without the wedge is also
given. The Dos Wedge can be found
on your VIC-1541 TEST/DEMO disk.
It was written by Bob Fairbairn.
Thanks, Bob!
Let's start with installing the
Wedge, itself. To get it operational,
put your TEST/DEMO disk in your 1541
and type
LOAD "DOS 5.1",8,1
NEW
SYS 52224
After that, all Wedge commands are
operational.
To begin with, wherever the '@' sign
is used, the '>' symbol can be used.
- - - - - - - - - - - - - - - - - - -
Wedge command: @
BASIC equivalent:
10 OPEN15,8,15
20 INPUT#15,ER,ER$,TR,SE
30 CLOSE15
40 PRINT ER","ER$","TR","SE
When the red light blinks on your
1541 disk, you had an error. Use
@ to check the error status.
Without the wedge, you would need
a small program like this to
read error status.
- - - - - - - - - - - - - - - - - - -
Wedge command: @$ or @$A*
BASIC equivalents:
LOAD"$",8
LIST
or
LOAD"$A*",8 <wildcard>
LIST
View the directory to see what
files are on a disk. With this
command, you can use pattern
matching and wildcards. You can
pause this directory by pressing
<space> and interrupt by pressing
RUN/STOP.
- - - - - - - - - - - - - - - - - - -
Wedge command: @N0:NAME,ID
BASIC equivalent:
OPEN15,8,15,"N0:NAME,ID":CLOSE15
Format a disk using the name and
id which is given. Be sure that
you do not want any information
which is on the disk. Formatting
destroys all previous data. You
need to format a new disk before
you can store files on it. Try
to use a different ID for each
disk you format.
- - - - - - - - - - - - - - - - - - -
Wedge command: @S0:NAME
BASIC equivalent:
OPEN15,8,15,"S0:NAME":CLOSE15
Scratch a file from the disk.
Be sure that you no longer want
this file. Scratched files are
removed from the directory.
- - - - - - - - - - - - - - - - - - -
Wedge command: @R0:NEW=OLD
BASIC equivalent:
OPEN15,8,15,"R0:NEW=OLD":CLOSE15
Rename the file called 'OLD'. The
name of 'OLD' will become 'NEW'.
- - - - - - - - - - - - - - - - - - -
Wedge command: @V0
BASIC equivalent:
OPEN15,8,15,"V0":CLOSE15
Validate the disk in drive 0.
Validation removes all files
that appear with a "*" in the
directory.
- - - - - - - - - - - - - - - - - - -
Wedge command: @D0=1
BASIC equivalent:
OPEN15,8,15"D0=1":CLOSE15
If you have dual disk drives, the
disk in drive 1 will be totally
copied onto the disk in drive 0.
Be sure that it is OK to destroy
all previous data on the disk in
drive 0. @D1=0 would copy drive
0 to drive 1.
- - - - - - - - - - - - - - - - - - -
Wedge command: @I0
BASIC equivalent:
OPEN15,8,15,"I0":CLOSE15
Initialize drive 0. It is a good
idea to initialize every time you
put another disk in your 1541.
- - - - - - - - - - - - - - - - - - -
Wedge command: @C0:NAME1=0:NAME2
BASIC equivalent:
OPEN15,8,15,"C0:NAME1=0:NAME2":CLOSE15
Copy NAME2 to NAME1. NAME2 is
not changed. If dual drives are
present, the syntax can be:
@C0:NAME1=1:NAME2. This will
copy the file NAME2 on drive 1 to
NAME1 on drive 0.
- - - - - - - - - - - - - - - - - - -
Wedge command: @#9
No BASIC equivalent.
Any wedge commands which follow
will access unit 9. Any valid
unit number may be assigned.
This is useful if you have two
1541 disk drives.
- - - - - - - - - - - - - - - - - - -
Wedge command: @Q
No BASIC eqivalent.
Exits the DOS wedge
You can restart it with SYS52224.
= = = = = = = = = = = = = = = = = = =
Now for the LOADING and SAVING of
files:
- - - - - - - - - - - - - - - - - - -
The '^' is used to LOAD and RUN a
program which loads into the normal
BASIC area.
Wedge command: ^NAME
BASIC equivalent:
LOAD"NAME",8:<shift run/stop>
- - - - - - - - - - - - - - - - - - -
The '/' is used to merely LOAD a
program, but not run it.
Wedge command: /NAME
BASIC equivalent:
LOAD"NAME",8
- - - - - - - - - - - - - - - - - - -
The '%' is used to LOAD a file
starting at its original load address.
(Used for binary, machine language,
sprites, etc.)
Wedge command: %NAME
BASIC equivalent:
LOAD"NAME",8,1
- - - - - - - - - - - - - - - - - - -
The '_' is used to SAVE a BASIC file
to disk.
Wedge command: _NAME
BASIC equivalent:
SAVE"NAME",8
----------- end of article -----------